package Studentinfo;

public class STudent {
    private String StudentID;
    private String name;
    private String age;
    private String number;

    public STudent() {
    }

    public STudent(String studentID, String name) {
       this. StudentID = studentID;
        this.name = name;
        System.out.println("学号："+getStudentID()+" "+"姓名"+getName());
    }

    public STudent(String studentID, String name, String age, String number) {
        StudentID = studentID;
        this.name = name;
        this.age = age;
        this.number = number;
        System.out.println("学号："+getStudentID()+" "+"姓名"+getName()+" "+"年龄"+getAge()+" "+"电话"+getNumber());
    }

    public String getStudentID() {
        return StudentID;
    }

    public void setStudentID(String studentID) {
        StudentID = studentID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

}
